import sys
from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow, QHBoxLayout, QVBoxLayout, QWidget, QPushButton,QSizePolicy

def click_button(self):
    print("clickButton")

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("Hello World")

        central_widget = QWidget()
        self.setCentralWidget(central_widget)

        mainLayout = QVBoxLayout()

        label = QLabel("I'm Label", self)
        label.setObjectName("label")
        label.setStyleSheet("""
            #label {
                color:'#f00';
                font-weight:bold;
                border:1px solid #f00;
                font-size:30px;
                margin-bottom:50px;
            }
        """)
        label.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
        label.setFixedSize(200,200)
        mainLayout.addWidget(label)

        horizontal_layout = QHBoxLayout()

        label1 = QLabel("I'm Label1", self)
        label2 = QLabel("I'm Label2", self)
        horizontal_layout.addWidget(label1)
        horizontal_layout.addWidget(label2)

        mainLayout.addLayout(horizontal_layout)

        button = QPushButton("Button",self)
        button.clicked.connect(click_button)
        mainLayout.addWidget(button)

        central_widget.setLayout(mainLayout)


app = QApplication(sys.argv)

window = MainWindow()
window.show()

sys.exit(app.exec_())
